import { defHttp } from '@/utils/http/axios'

// 查询excel导入失败记录列表
export function getImportFailPage(params) {
  return defHttp.get({ url: '/wages/import-fail/page', params })
}

// 查询excel导入失败记录详情
export function getImportFail(id: number) {
  return defHttp.get({ url: `/wages/import-fail/get?id=${id}` })
}

// 新增excel导入失败记录
export function createImportFail(data) {
  return defHttp.post({ url: '/wages/import-fail/create', data })
}

// 修改excel导入失败记录
export function updateImportFail(data) {
  return defHttp.put({ url: '/wages/import-fail/update', data })
}

// 删除excel导入失败记录
export function deleteImportFail(id: number) {
  return defHttp.delete({ url: `/wages/import-fail/delete?id=${id}` })
}

// 导出excel导入失败记录 Excel
export function exportImportFail(params) {
  return defHttp.download({ url: '/wages/import-fail/export-excel', params }, 'excel导入失败记录.xls')
}